.class public Lcom/zuimeia/ui/view/CircleRippleDrawable;
.super Landroid/graphics/drawable/Drawable;
.source "CircleRippleDrawable.java"

# interfaces
.implements Landroid/graphics/drawable/Animatable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;
    }
.end annotation


# static fields
.field private static final BASE_CIRCLE_RADIUS:I = 0x12

.field private static final DEFAULT_CIRCLE_ALPHA:I = 0xc8

.field public static final DEFAULT_COLOR:I = -0x1

.field public static final DEFAULT_PRESSED_DURATION:I = 0x190

.field public static final DEFAULT_SCALE:I = 0x1


# instance fields
.field private animatorListener:Landroid/animation/Animator$AnimatorListener;

.field private final circlePaint:Landroid/graphics/Paint;

.field private circleRadius:F

.field private final lock:Ljava/lang/Object;

.field private materialMenuState:Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

.field private pressedCircle:Landroid/animation/ObjectAnimator;

.field private pressedProgressProperty:Landroid/util/Property;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/Property",
            "<",
            "Lcom/zuimeia/ui/view/CircleRippleDrawable;",
            "Ljava/lang/Float;",
            ">;"
        }
    .end annotation
.end field

.field private pressedProgressValue:F


# direct methods
.method private constructor <init>(IJ)V
    .registers 8
    .param p1, "color"    # I
    .param p2, "pressedDuration"    # J

    .prologue
    .line 86
    invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V

    .line 55
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->lock:Ljava/lang/Object;

    .line 57
    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    .line 59
    const/4 v0, 0x0

    iput v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressValue:F

    .line 180
    new-instance v0, Lcom/zuimeia/ui/view/CircleRippleDrawable$1;

    const-class v1, Ljava/lang/Float;

    const-string v2, "pressedProgress"

    invoke-direct {v0, p0, v1, v2}, Lcom/zuimeia/ui/view/CircleRippleDrawable$1;-><init>(Lcom/zuimeia/ui/view/CircleRippleDrawable;Ljava/lang/Class;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressProperty:Landroid/util/Property;

    .line 88
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->initPaint(I)V

    .line 89
    long-to-int v0, p2

    invoke-direct {p0, v0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->initAnimations(I)V

    .line 91
    new-instance v0, Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;-><init>(Lcom/zuimeia/ui/view/CircleRippleDrawable;Lcom/zuimeia/ui/view/CircleRippleDrawable$1;)V

    iput-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->materialMenuState:Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

    .line 92
    return-void
.end method

.method synthetic constructor <init>(IJLcom/zuimeia/ui/view/CircleRippleDrawable$1;)V
    .registers 5
    .param p1, "x0"    # I
    .param p2, "x1"    # J
    .param p4, "x2"    # Lcom/zuimeia/ui/view/CircleRippleDrawable$1;

    .prologue
    .line 42
    invoke-direct {p0, p1, p2, p3}, Lcom/zuimeia/ui/view/CircleRippleDrawable;-><init>(IJ)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;I)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "color"    # I

    .prologue
    .line 67
    const/4 v0, 0x1

    const/16 v1, 0x190

    invoke-direct {p0, p1, p2, v0, v1}, Lcom/zuimeia/ui/view/CircleRippleDrawable;-><init>(Landroid/content/Context;III)V

    .line 68
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;II)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "color"    # I
    .param p3, "pressedDuration"    # I

    .prologue
    .line 71
    const/4 v0, 0x1

    invoke-direct {p0, p1, p2, v0, p3}, Lcom/zuimeia/ui/view/CircleRippleDrawable;-><init>(Landroid/content/Context;III)V

    .line 72
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;III)V
    .registers 9
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "color"    # I
    .param p3, "scale"    # I
    .param p4, "pressedDuration"    # I

    .prologue
    .line 74
    invoke-direct {p0}, Landroid/graphics/drawable/Drawable;-><init>()V

    .line 55
    new-instance v1, Ljava/lang/Object;

    invoke-direct {v1}, Ljava/lang/Object;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->lock:Ljava/lang/Object;

    .line 57
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    .line 59
    const/4 v1, 0x0

    iput v1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressValue:F

    .line 180
    new-instance v1, Lcom/zuimeia/ui/view/CircleRippleDrawable$1;

    const-class v2, Ljava/lang/Float;

    const-string v3, "pressedProgress"

    invoke-direct {v1, p0, v2, v3}, Lcom/zuimeia/ui/view/CircleRippleDrawable$1;-><init>(Lcom/zuimeia/ui/view/CircleRippleDrawable;Ljava/lang/Class;Ljava/lang/String;)V

    iput-object v1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressProperty:Landroid/util/Property;

    .line 75
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    .line 78
    .local v0, "resources":Landroid/content/res/Resources;
    const/high16 v1, 0x41900000

    invoke-static {v0, v1}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->dpToPx(Landroid/content/res/Resources;F)F

    move-result v1

    int-to-float v2, p3

    mul-float/2addr v1, v2

    iput v1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circleRadius:F

    .line 80
    invoke-direct {p0, p2}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->initPaint(I)V

    .line 81
    invoke-direct {p0, p4}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->initAnimations(I)V

    .line 83
    new-instance v1, Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;-><init>(Lcom/zuimeia/ui/view/CircleRippleDrawable;Lcom/zuimeia/ui/view/CircleRippleDrawable$1;)V

    iput-object v1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->materialMenuState:Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

    .line 84
    return-void
.end method

.method static synthetic access$102(Lcom/zuimeia/ui/view/CircleRippleDrawable;F)F
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/view/CircleRippleDrawable;
    .param p1, "x1"    # F

    .prologue
    .line 42
    iput p1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressValue:F

    return p1
.end method

.method static synthetic access$300(Lcom/zuimeia/ui/view/CircleRippleDrawable;)Landroid/graphics/Paint;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/view/CircleRippleDrawable;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    return-object v0
.end method

.method static synthetic access$400(Lcom/zuimeia/ui/view/CircleRippleDrawable;)Landroid/animation/ObjectAnimator;
    .registers 2
    .param p0, "x0"    # Lcom/zuimeia/ui/view/CircleRippleDrawable;

    .prologue
    .line 42
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    return-object v0
.end method

.method static dpToPx(Landroid/content/res/Resources;F)F
    .registers 4
    .param p0, "resources"    # Landroid/content/res/Resources;
    .param p1, "dp"    # F

    .prologue
    .line 273
    const/4 v0, 0x1

    invoke-virtual {p0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v1

    invoke-static {v0, p1, v1}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F

    move-result v0

    return v0
.end method

.method private drawTouchCircle(Landroid/graphics/Canvas;)V
    .registers 9
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 110
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 111
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    .line 112
    invoke-virtual {p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->getBounds()Landroid/graphics/Rect;

    move-result-object v2

    .line 114
    .local v2, "rect":Landroid/graphics/Rect;
    iget v3, v2, Landroid/graphics/Rect;->right:I

    iget v4, v2, Landroid/graphics/Rect;->left:I

    sub-int/2addr v3, v4

    div-int/lit8 v3, v3, 0x2

    iget v4, v2, Landroid/graphics/Rect;->left:I

    add-int v0, v3, v4

    .line 115
    .local v0, "centerX":I
    iget v3, v2, Landroid/graphics/Rect;->bottom:I

    iget v4, v2, Landroid/graphics/Rect;->top:I

    sub-int/2addr v3, v4

    div-int/lit8 v3, v3, 0x2

    iget v4, v2, Landroid/graphics/Rect;->top:I

    add-int v1, v3, v4

    .line 116
    .local v1, "centerY":I
    int-to-float v3, v0

    int-to-float v4, v1

    iget v5, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressValue:F

    iget-object v6, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    invoke-virtual {p1, v3, v4, v5, v6}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 118
    return-void
.end method

.method private initAnimations(I)V
    .registers 6
    .param p1, "pressedDuration"    # I

    .prologue
    .line 204
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressProperty:Landroid/util/Property;

    const/4 v1, 0x2

    new-array v1, v1, [F

    fill-array-data v1, :array_2a

    invoke-static {p0, v0, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    .line 205
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    int-to-long v2, p1

    invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 206
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    new-instance v1, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/DecelerateInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 207
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    new-instance v1, Lcom/zuimeia/ui/view/CircleRippleDrawable$2;

    invoke-direct {v1, p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable$2;-><init>(Lcom/zuimeia/ui/view/CircleRippleDrawable;)V

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 216
    return-void

    .line 204
    nop

    :array_2a
    .array-data 4
        0x0
        0x0
    .end array-data
.end method

.method private initPaint(I)V
    .registers 4
    .param p1, "color"    # I

    .prologue
    .line 95
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 96
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 97
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    .line 98
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    const/16 v1, 0xc8

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 99
    return-void
.end method


# virtual methods
.method public animatePressedState()V
    .registers 3

    .prologue
    .line 172
    iget-object v1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->lock:Ljava/lang/Object;

    monitor-enter v1

    .line 173
    :try_start_3
    invoke-virtual {p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->start()V

    .line 174
    monitor-exit v1

    .line 175
    return-void

    .line 174
    :catchall_8
    move-exception v0

    monitor-exit v1
    :try_end_a
    .catchall {:try_start_3 .. :try_end_a} :catchall_8

    throw v0
.end method

.method public draw(Landroid/graphics/Canvas;)V
    .registers 2
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 106
    invoke-direct {p0, p1}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->drawTouchCircle(Landroid/graphics/Canvas;)V

    .line 107
    return-void
.end method

.method public getConstantState()Landroid/graphics/drawable/Drawable$ConstantState;
    .registers 3

    .prologue
    .line 243
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->materialMenuState:Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

    invoke-virtual {p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->getChangingConfigurations()I

    move-result v1

    # setter for: Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;->changingConfigurations:I
    invoke-static {v0, v1}, Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;->access$202(Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;I)I

    .line 244
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->materialMenuState:Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

    return-object v0
.end method

.method public getOpacity()I
    .registers 2

    .prologue
    .line 139
    const/4 v0, -0x2

    return v0
.end method

.method public getPressedProgress()Ljava/lang/Float;
    .registers 2

    .prologue
    .line 194
    iget v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressValue:F

    invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v0

    return-object v0
.end method

.method public isRunning()Z
    .registers 2

    .prologue
    .line 238
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->isRunning()Z

    move-result v0

    return v0
.end method

.method public mutate()Landroid/graphics/drawable/Drawable;
    .registers 3

    .prologue
    .line 249
    new-instance v0, Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;-><init>(Lcom/zuimeia/ui/view/CircleRippleDrawable;Lcom/zuimeia/ui/view/CircleRippleDrawable$1;)V

    iput-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->materialMenuState:Lcom/zuimeia/ui/view/CircleRippleDrawable$MaterialMenuState;

    .line 250
    return-object p0
.end method

.method public setAlpha(I)V
    .registers 3
    .param p1, "alpha"    # I

    .prologue
    .line 131
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 132
    return-void
.end method

.method public setAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
    .registers 4
    .param p1, "listener"    # Landroid/animation/Animator$AnimatorListener;

    .prologue
    .line 160
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->animatorListener:Landroid/animation/Animator$AnimatorListener;

    if-eqz v0, :cond_b

    .line 161
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    iget-object v1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->animatorListener:Landroid/animation/Animator$AnimatorListener;

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->removeListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 164
    :cond_b
    if-eqz p1, :cond_12

    .line 165
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0, p1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 168
    :cond_12
    iput-object p1, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->animatorListener:Landroid/animation/Animator$AnimatorListener;

    .line 169
    return-void
.end method

.method public setBounds(IIII)V
    .registers 8
    .param p1, "left"    # I
    .param p2, "top"    # I
    .param p3, "right"    # I
    .param p4, "bottom"    # I

    .prologue
    .line 122
    invoke-super {p0, p1, p2, p3, p4}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 124
    sub-int v1, p3, p1

    .line 125
    .local v1, "width":I
    sub-int v0, p4, p2

    .line 127
    .local v0, "height":I
    invoke-static {v1, v0}, Ljava/lang/Math;->min(II)I

    move-result v2

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    iput v2, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circleRadius:F

    .line 128
    return-void
.end method

.method public setColor(I)V
    .registers 3
    .param p1, "color"    # I

    .prologue
    .line 147
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    .line 148
    invoke-virtual {p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->invalidateSelf()V

    .line 149
    return-void
.end method

.method public setColorFilter(Landroid/graphics/ColorFilter;)V
    .registers 3
    .param p1, "cf"    # Landroid/graphics/ColorFilter;

    .prologue
    .line 135
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;

    .line 136
    return-void
.end method

.method public setInterpolator(Landroid/view/animation/Interpolator;)V
    .registers 3
    .param p1, "interpolator"    # Landroid/view/animation/Interpolator;

    .prologue
    .line 156
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0, p1}, Landroid/animation/ObjectAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 157
    return-void
.end method

.method public setPressedDuration(I)V
    .registers 6
    .param p1, "duration"    # I

    .prologue
    .line 152
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    int-to-long v2, p1

    invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 153
    return-void
.end method

.method public setPressedProgress(Ljava/lang/Float;)V
    .registers 7
    .param p1, "value"    # Ljava/lang/Float;

    .prologue
    .line 198
    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result v0

    iput v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedProgressValue:F

    .line 199
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circlePaint:Landroid/graphics/Paint;

    const/high16 v1, 0x43480000

    const/high16 v2, 0x3f800000

    invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F

    move-result v3

    iget v4, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circleRadius:F

    div-float/2addr v3, v4

    sub-float/2addr v2, v3

    mul-float/2addr v1, v2

    float-to-int v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setAlpha(I)V

    .line 200
    invoke-virtual {p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->invalidateSelf()V

    .line 201
    return-void
.end method

.method public start()V
    .registers 5

    .prologue
    .line 219
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_d

    .line 220
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V

    .line 223
    :cond_d
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    const/4 v1, 0x2

    new-array v1, v1, [F

    const/4 v2, 0x0

    const/4 v3, 0x0

    aput v3, v1, v2

    const/4 v2, 0x1

    iget v3, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->circleRadius:F

    aput v3, v1, v2

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->setFloatValues([F)V

    .line 224
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    .line 226
    invoke-virtual {p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->invalidateSelf()V

    .line 227
    return-void
.end method

.method public stop()V
    .registers 2

    .prologue
    .line 230
    invoke-virtual {p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_b

    .line 231
    iget-object v0, p0, Lcom/zuimeia/ui/view/CircleRippleDrawable;->pressedCircle:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->end()V

    .line 234
    :cond_b
    invoke-virtual {p0}, Lcom/zuimeia/ui/view/CircleRippleDrawable;->invalidateSelf()V

    .line 235
    return-void
.end method
